<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IF</title>
</head>
<body>

	<form action="if.jsp" method="get">
		<input type="text" name="score" value="${param.score}">
		<input type="submit">
	</form>
	
	<c:if test="${param.score >= 85}" var="result">
		<c:out value="成绩优秀！"></c:out>
	</c:if>
	<c:if test="${param.score < 85 && param.score >= 60}" var="result">
		<c:out value="成绩良好！"></c:out>
	</c:if>
	<c:if test="${param.score < 60}" var="result">
		<c:out value="不及格！"></c:out>
	</c:if>
	
	<c:out value="${result}"></c:out>
	
	
	
</body>
</html>



